import axios from '@/libs/api.request'

export class EmployeeQuickEntryApi {
  // 待入职员工列表
  static getList (params) {
    return axios.request({
      url: '/EmployeeQuickEntry/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 确认入职
  static confirm (id) {
    return axios.request({
      url: '/EmployeeQuickEntry/Confirm?Id=' + id,
      method: 'get',
      enctype: 'multipart/form-data',
    })
  }

  // 导出
  static export (params) {
    return axios.request({
      url: '/EmployeeQuickEntry/Export',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 详情
  static getModel (id) {
    return axios.request({
      url: '/EmployeeQuickEntry/GetModel?id=' + id,
      method: 'get',
      enctype: 'multipart/form-data'
    })
  }

  // 详情
  static save (params) {
    return axios.request({
      url: '/EmployeeQuickEntry/Save',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
